﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001087 RID: 4231
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueUnlockProgress : IMessage<RogueUnlockProgress>, IMessage, IEquatable<RogueUnlockProgress>, IDeepCloneable<RogueUnlockProgress>, IBufferMessage
	{
		// Token: 0x17003554 RID: 13652
		// (get) Token: 0x0600BCCE RID: 48334 RVA: 0x001FCC45 File Offset: 0x001FAE45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueUnlockProgress> Parser
		{
			get
			{
				return RogueUnlockProgress._parser;
			}
		}

		// Token: 0x17003555 RID: 13653
		// (get) Token: 0x0600BCCF RID: 48335 RVA: 0x001FCC4C File Offset: 0x001FAE4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueUnlockProgressReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003556 RID: 13654
		// (get) Token: 0x0600BCD0 RID: 48336 RVA: 0x001FCC5E File Offset: 0x001FAE5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueUnlockProgress.Descriptor;
			}
		}

		// Token: 0x0600BCD1 RID: 48337 RVA: 0x001FCC65 File Offset: 0x001FAE65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueUnlockProgress()
		{
		}

		// Token: 0x0600BCD2 RID: 48338 RVA: 0x001FCC6D File Offset: 0x001FAE6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueUnlockProgress(RogueUnlockProgress other) : this()
		{
			this.finish_ = other.finish_;
			this.progress_ = other.progress_;
			this.unlockId_ = other.unlockId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BCD3 RID: 48339 RVA: 0x001FCCAA File Offset: 0x001FAEAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueUnlockProgress Clone()
		{
			return new RogueUnlockProgress(this);
		}

		// Token: 0x17003557 RID: 13655
		// (get) Token: 0x0600BCD4 RID: 48340 RVA: 0x001FCCB2 File Offset: 0x001FAEB2
		// (set) Token: 0x0600BCD5 RID: 48341 RVA: 0x001FCCBA File Offset: 0x001FAEBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Finish
		{
			get
			{
				return this.finish_;
			}
			set
			{
				this.finish_ = value;
			}
		}

		// Token: 0x17003558 RID: 13656
		// (get) Token: 0x0600BCD6 RID: 48342 RVA: 0x001FCCC3 File Offset: 0x001FAEC3
		// (set) Token: 0x0600BCD7 RID: 48343 RVA: 0x001FCCCB File Offset: 0x001FAECB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Progress
		{
			get
			{
				return this.progress_;
			}
			set
			{
				this.progress_ = value;
			}
		}

		// Token: 0x17003559 RID: 13657
		// (get) Token: 0x0600BCD8 RID: 48344 RVA: 0x001FCCD4 File Offset: 0x001FAED4
		// (set) Token: 0x0600BCD9 RID: 48345 RVA: 0x001FCCDC File Offset: 0x001FAEDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UnlockId
		{
			get
			{
				return this.unlockId_;
			}
			set
			{
				this.unlockId_ = value;
			}
		}

		// Token: 0x0600BCDA RID: 48346 RVA: 0x001FCCE5 File Offset: 0x001FAEE5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueUnlockProgress);
		}

		// Token: 0x0600BCDB RID: 48347 RVA: 0x001FCCF4 File Offset: 0x001FAEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueUnlockProgress other)
		{
			return other != null && (other == this || (this.Finish == other.Finish && this.Progress == other.Progress && this.UnlockId == other.UnlockId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BCDC RID: 48348 RVA: 0x001FCD50 File Offset: 0x001FAF50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Finish)
			{
				num ^= this.Finish.GetHashCode();
			}
			if (this.Progress != 0U)
			{
				num ^= this.Progress.GetHashCode();
			}
			if (this.UnlockId != 0U)
			{
				num ^= this.UnlockId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BCDD RID: 48349 RVA: 0x001FCDC1 File Offset: 0x001FAFC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BCDE RID: 48350 RVA: 0x001FCDC9 File Offset: 0x001FAFC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BCDF RID: 48351 RVA: 0x001FCDD4 File Offset: 0x001FAFD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Progress != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Progress);
			}
			if (this.Finish)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.Finish);
			}
			if (this.UnlockId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.UnlockId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BCE0 RID: 48352 RVA: 0x001FCE48 File Offset: 0x001FB048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Finish)
			{
				num += 2;
			}
			if (this.Progress != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Progress);
			}
			if (this.UnlockId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UnlockId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BCE1 RID: 48353 RVA: 0x001FCEAC File Offset: 0x001FB0AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueUnlockProgress other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Finish)
			{
				this.Finish = other.Finish;
			}
			if (other.Progress != 0U)
			{
				this.Progress = other.Progress;
			}
			if (other.UnlockId != 0U)
			{
				this.UnlockId = other.UnlockId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BCE2 RID: 48354 RVA: 0x001FCF10 File Offset: 0x001FB110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BCE3 RID: 48355 RVA: 0x001FCF1C File Offset: 0x001FB11C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 56U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.UnlockId = input.ReadUInt32();
						}
					}
					else
					{
						this.Finish = input.ReadBool();
					}
				}
				else
				{
					this.Progress = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004C07 RID: 19463
		private static readonly MessageParser<RogueUnlockProgress> _parser = new MessageParser<RogueUnlockProgress>(() => new RogueUnlockProgress());

		// Token: 0x04004C08 RID: 19464
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C09 RID: 19465
		public const int FinishFieldNumber = 7;

		// Token: 0x04004C0A RID: 19466
		private bool finish_;

		// Token: 0x04004C0B RID: 19467
		public const int ProgressFieldNumber = 1;

		// Token: 0x04004C0C RID: 19468
		private uint progress_;

		// Token: 0x04004C0D RID: 19469
		public const int UnlockIdFieldNumber = 8;

		// Token: 0x04004C0E RID: 19470
		private uint unlockId_;
	}
}
